#
# Be sure to run `pod lib lint BaseComponent.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'BaseComponent'
  s.version          = '0.1.4'
  s.summary          = '基础组件.'
  s.description      = '基础子组件.'
  s.homepage         = 'https://gitee.com/htzero/BaseComponent'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { 'ryan' => 'whtgogoing@163.com' }
  s.source           = { :git => 'https://gitee.com/htzero/BaseComponent.git', :tag => s.version.to_s }

  s.swift_version = '5.0'
  s.ios.deployment_target = '11.0'

  # s.source_files = 'BaseComponent/Classes/**/*'

  s.subspec 'Extension' do |e|
    e.source_files = 'BaseComponent/Classes/Extension/**/*'
  end

  s.subspec 'Const' do |c|
    c.source_files = 'BaseComponent/Classes/Const/**/*'
  end
  
  s.subspec 'Net' do |n|
    n.source_files = 'BaseComponent/Classes/Net/**/*'
    n.dependency 'Alamofire', '5.6.4'
    n.dependency 'PromiseKit'
    n.dependency 'HandyJSON'
    n.dependency 'SwiftyJSON'
  end

  
  # s.resource_bundles = {
  #   'BaseComponent' => ['BaseComponent/Assets/*.png']
  # }

  # s.public_header_files = 'Pod/Classes/**/*.h'
  # s.frameworks = 'UIKit', 'MapKit'
  # s.dependency 'AFNetworking', '~> 2.3'
end
